from django.db import models

# Create your models here.

class Cate(models.Model):
    cate_name=models.CharField(max_length=30,verbose_name="分类名称")
    cate_img=models.ImageField(upload_to="img",verbose_name='分类图片')

    class Meta:
        db_table='cate'
        verbose_name='商品分类'
        verbose_name_plural=verbose_name


    def __str__(self):
        return self.cate_name